<template>
  <div class="img_container" v-show="showis" @click="to">
      <img :src="img" alt="">
  </div>
</template>

<script>
export default {
    props:{
        img:String
    },
    data(){
        return{
            showis:true
        }
    },
    methods:{
        to(){
            this.showis = !this.showis
        }
    }
}
</script>

<style scoped>
.img_container
{
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.7);
    /* background-color: red; */
    position: fixed;
    top: 0;
    left: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-items: start;
    z-index: 99999;
}

.img_container img
{
    width: 500px;
    
}
</style>